/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package server.process;

import java.util.Comparator;
import server.entity.ViewPhoto;

/**
 *
 * @author Hoang
 */
public class PhotoViewReportComparator implements Comparator<ImageViewReport> {

    public int compare(ImageViewReport o1, ImageViewReport o2) {
        return (int) (o1.getTotalView() - o2.getTotalView());
    }

}
